﻿using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;

namespace Camelot.JSONAPI
{
    [ServiceContract(Name = "IJsonService")]
    public interface IJsonService
    {
        //[OperationContract]
        //[WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest,
        //        ResponseFormat = WebMessageFormat.Json)]
        //string Items(Command command);

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json)]
        string Items(string command);

        [OperationContract]
        [WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json)]
        string GetUser();

    }
}
